import request from '@/utils/request/index.js'
export default {
	/**
	 * 获取产品信息
	 * @param id
	 * @returns {*}
	 */
	getProductById(id){
		return request.request({
			url: "/h5/nocproduct/detail/" + id,
			method: 'get',
			data:{}
		})
	},
	/**
	 * 绑定手机号
	 * @param phone
	 * @param code
	 * @returns {*}
	 */
	bindPhone(phone,code){
		return request.request({
			url: "/h5/login/bindingPhone",
			method: 'post',
			data:{
				phone : phone,
				verifucationCode:code
			}
		})
	},
	/**
	 * 更新询价单
	 * @param user
	 * @returns {*}
	 */
	updateInquiry(user){
		return request.request({
			url: "/h5/nocuser/updateInquiry",
			method: 'post',
			data: user
		})
	},
	/**
	 * 保存询价单
	 * @param nocInquiry
	 * @returns {*}
	 */
	saveInquiry(nocInquiry){
		return request.request({
			url: "/h5/nocinquiry/save",
			method: 'post',
			data: JSON.stringify(nocInquiry)
		})
	},

}